<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort() + request.getContextPath();
%>
<jsp:include page="/WEB-INF/page/auth/_header.jsp"></jsp:include>
<body>
<jsp:include page="/WEB-INF/page/auth/header.jsp"></jsp:include>
<div id="middle">
    <jsp:include page="/WEB-INF/page/auth/menu.jsp"></jsp:include>
    <div id="right">
        <div class="col-md-12" id="content_div">
            <div id="tb" style="height:auto;">
                <jsp:include page="/WEB-INF/page/auth/localinfo.jsp"/>
                <form id="studentSearchForm" class="ml10">
                    学期：
                    <select class="form-control1" name="termId" id="termId" onchange="searchGrade(this)">
                    </select>
                    年级：
                    <select class="form-control1" name="grade" id="grade" onchange="searchClazz(this.value)">
                    </select>
                    班级：
                    <select id="clazz" name="clazz" class="form-control1">
                    </select>
                    学生姓名：
                    <input id="key" name="key" class="easyui-validatebox validatebox-text" style="width:120px;">
                    <input id="schoolId" name="schoolId" type="hidden" value="">
                    <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'"
                       onclick="searchForm('studentSearchForm')">查询</a>
                    <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'"
                       onclick="resetForm('studentSearchForm')">重置</a>
                    <div class="mt10">
                        <a href="javascript:void(0)" class="easyui-linkbutton"
                           data-options="iconCls:'icon-edit',plain:true" onclick="dgUpdate('studentDg')">修改</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton"
                           data-options="iconCls:'icon-undo',plain:true" onclick="dgReject('studentDg')">取消</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton"
                           data-options="iconCls:'icon-save',plain:true" onclick="save('studentDg')">保存</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton"
                           data-options="iconCls:'icon-tip',plain:true"
                           onclick="exportToExcel('studentSearchForm','<%=basePath%>/sys/report/finalTermScoreReportTemplate/export')">下载excel模板</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton"
                           data-options="iconCls:'icon-large-smartart',plain:true" onclick="upload()">导入</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton"
                           data-options="iconCls:'icon-large-smartart',plain:true" onclick="downloadExcel()">导出</a>
                    </div>
                </form>
            </div>

            <table id="studentDg" class="easyui-datagrid" style="height: 600;"></table>

        </div>
    </div>
</div>

<div id="uploadBox" style="display: none;height: 'auto';">
    <div class="col-md-12 pd20">
        <form id="uploadForm" novalidate="novalidate" enctype="multipart/form-data" method="post">
            <div class="form-group col-md-12" id="scoreTips">

            </div>
            <div class="form-group col-md-12 mt20">
                <input class="easyui-filebox form-control" id="files" name="files" style="width:250px;">
            </div>
        </form>
    </div>
    <div class="text-center pd20">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="uploadCommit()" style="width: 200px;">上传</a>
    </div>
</div>

<jsp:include page="/WEB-INF/page/auth/_footer.jsp"/>
<script type="text/javascript" src="<%=basePath%>/js/sys/finalTermScoreReport.js"></script>
</body>
</html>